var fammerList = new Vue({
  el: '#fammerList',
  data:{
			fammers:[],
		  areaname:'',
		  areacode:'',
		  nameparam:''
  },
  watch: {　　　　　
			areacode:function(curVal, oldVal){
				//村改变查询农户
				this.getFammers()
			},
			nameparam:function(curVal, oldVal){
				console.log(curVal+","+oldVal)
			}
	},
  mounted:function(){
		
  },
  methods:{
  	dial:function(phone){
  		  plus.device.dial( phone, false );
  	},
		getFammers:function(){
			var _this = this
				axios({
						method: 'POST',
						url: sever + '/fammers',
						params: { "area":_this.areacode,"name":_this.nameparam},
						responseType: 'json',
					}).then(function(res){
						_this.fammers = res.data.data
						mui('#pullrefresh').pullRefresh().endPulldownToRefresh();
					})
		},
		addInfo:function(name,id,html){
			localStorage.fammername =name
			localStorage.fammerid =		id
			openWin(html)
		},
		dxdan:function(name,id,html){
			localStorage.fammername =name
			localStorage.fammerid =		id
			openWin(html)
		},
		history:function(name,id,html){
			localStorage.fammername =name
			localStorage.fammerid =		id
			openWin(html)
		}
  },
});